<?php
/**
 * @package		mod_qlform
 * @copyright	Copyright (C) 2012 ql.de All rights reserved.
 * @author 		Mareike Riegel mareike.riegel@ql.de
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
// no direct access
defined('_JEXEC') or die;
JHtml::_ ( 'behavior.formvalidation' );
JHtml::_ ( 'behavior.tooltip' );
?>

<div class="qlform<?php echo $moduleclass_sfx; ?>">
<?php 
if (1==$emailcloak) echo "{emailcloak=off}"; /*very important; disabled email cloaking in email inputs!!!!*/
require_once(dirname(__FILE__).'/default_copyright.php');
if ((1==$messageType OR 3==$messageType) AND isset($messages)) require_once(dirname(__FILE__).'/default_message.php');
if (0==$params->get('hideform') OR (1==$params->get('hideform') AND  (!isset($validated) OR (isset($validated) AND 0==$validated)))) 
{
	if (1==$showpretext) require_once(dirname(__FILE__).'/default_pretext.php');
	require_once(dirname(__FILE__).'/default_form.php');
}
if (1==$params->get('backbool') AND isset($validated)) require_once(dirname(__FILE__).'/default_back.php');
if (1==$params->get('authorbool')) require_once(dirname(__FILE__).'/default_author.php');
?>
</div>
